package com.itheima.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class GoodsRequestDTO {
    private Long id;
    private String code;
    private String name;
    private List<Integer> categoryId;
    private String description;
    private String content;
    private String supplierName;
    private String brand;
    private String lengthUnit;
    private String volumeUnit;
    private String weightUnit;
    private List<GoodsSpecDTO> specList;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class GoodsSpecDTO {
        private String specCode;
        private String specName;
        private String unit;
        private String barcode;
        private String weight;
        private String length;
        private String width;
        private String height;
        private String volume;
        private BigDecimal cost;
        private BigDecimal price;
    }
}